package com.itgaoshu.service.impl;

import com.itgaoshu.bean.Finance;
import com.itgaoshu.mapper.FinanceMapper;
import com.itgaoshu.service.FinanceService;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author: xiyue
 * Date: 2021/3/22
 * Time: 15:50
 * To change this template use File | Settings | File Templates.
 * Description:
 */
@Service
@Transactional
public class FinanceServiceImpl implements FinanceService {
    @Resource
    private FinanceMapper  financeMapper;
    @Override
    public List<Double> reportYearFinance(String year) {
        return financeMapper.reportYearFinance(year);
    }

    //住院月度统计
    @Override
    public List<Double> zhuYuanYearFinance(String year) {
        return financeMapper.zhuYuanYearFinance(year);
    }
    //门诊年度统计
    @Override
    public List<Finance> reportYearBingFinance() {
        return financeMapper.reportYearBingFinance();
    }
}
